package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: ProjectForIndexSystemConfigBaseRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-25
 * @Version: 1.0
 * Table: pear_project
 * Comment:
 * 项目表
 */
public class ProjectForIndexSystemConfigBaseRequestConvert extends BaseConvert {
    public static ProjectForIndexSystemConfigBase convert(ProjectForIndexSystemConfigBaseRequest request) throws Exception {
        ProjectForIndexSystemConfigBase daoRequest = new ProjectForIndexSystemConfigBase();
        copyProperties(request, daoRequest);

        daoRequest.setName(daoRequest.getName() == null ? null : daoRequest.getName().trim());
        daoRequest.setValue(daoRequest.getValue() == null ? null : daoRequest.getValue().trim());

        return daoRequest;
    }
}
